

package org.t2.design.module;

import org.gaming.tool.GsonUtil;
import org.t2.design.module.autogen.CheckAbstractTable;

@org.springframework.stereotype.Component
public class CheckTable extends CheckAbstractTable<CheckAbstractTable.CheckCfg> {

	private static CheckTable INS = null;
	
	public static final CheckTable ins() {
		if(INS == null) {
			INS = org.gaming.ruler.spring.Spring.getBean(CheckTable.class);
		}
		return INS;
	}
	
	@Override
	protected void loadAfterReady() {
		int printNum = 0;
		for(CheckCfg cfg : this.all()) {
			if(printNum < 10) {
				System.out.println(GsonUtil.toJson(cfg));
			}
			printNum += 1;
		}
	}
}
